﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using RetailAnalytic.Core;
using System.Drawing;
using Microsoft.AnalysisServices.AdomdClient;

namespace RetailAnalytic.Tools.Writeback
{
    class EntryPointServiceModule : RetailAnalytic.Core.IGlobalServiceModule
    {
        RetailAnalytic.Core.IMainShell MainShell;
        #region IGlobalServiceModule Members

        public void InitializeModule(IMainShell mainShell)
        {
            MainShell = mainShell;
        }

        public void ExecuteService(params object[] parameters)
        {
            throw new NotImplementedException();
        }

        #endregion

        #region IModule Members
        public string Key { get { return "94f4482a-e2c2-4447-8b70-40b05f8e0514"; } }
        public string Name { get { return "Writeback"; } }
        public string Description { get { return "Writeback Service"; } }
        public string Version { get { return System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); } }
        public string Author { get { return "OLavrinets"; } }
        public string AssemblyName { get { return System.Reflection.Assembly.GetExecutingAssembly().GetName().FullName; } }
        public string OurFirm { get { return "IBS"; } }
        public Image Icon { get { return SR.ImagesLibrary.GetImageByName("adhook1"); } }
        public Image IconSelect { get { return SR.ImagesLibrary.GetImageByName("adhook1"); } }
        public Image ToolBarImage { get { return SR.ImagesLibrary.GetImageByName("adhook_32"); } }
        public string TitleDescription { get { return SR.StringLibrary.GetPresentationDescription(Name); } }
        public string ToolBarTitle { get { return SR.StringLibrary.GetTitlePresentation(Name); } }
        public bool HasChild { get { return false; } }

        #endregion
    }
}
